class Async {
  delay(time) {
    return new Promise((resolve, reject) => {
      let uid = setTimeout(() => {
        clearTimeout(uid);
        resolve();
      }, time);
    });
  }
}
export default new Async();
